<?php
include_once'admin_core/services/BanJiService.php';
include_once 'admin_core/utils/Function.php';
$bjId = $_GET["bjId"];
$bjService = new BanJiService();
$bj = $bjService->getBanJiById($bjId);
$fun = new fun();
$fun->closeDB();
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题</title>
<style type="text/css">
<!--
body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #e1e2e3;
	font-size: 12px;
}
.STYLE6 {color: #000000; font-size: 12; }
.STYLE10 {color: #000000; font-size: 12px; }
.STYLE19 {
	color: #344b50;
	font-size: 12px;
}
.STYLE21 {
	font-size: 12px;
	color: #3b6375;
}
.STYLE22 {
	font-size: 12px;
	color: #295568;
}
input{
	color:#3CC;
	width:200px;
	height:20px;
	}
-->
</style>
<script type="text/javascript"  src="js/comment.js"></script>
<script type="text/javascript"  src="js/ajax.js" charset="utf-8"></script>
<script type="text/javascript">
function submitForm()
{
	if(document.getElementById("bjName").value=="")
	{
		alert("专业名不能为空！");
		document.getElementById("bjName").focus();
		}
		else
		{
			document.getElementById("bjForm").submit();
		}
}
</script>
</head>

<body style="text-align:center;">
<center>

<fieldset>
<legend><img src="images/311.gif"/>&nbsp;<span style="color:#333; font-size:15px; font-weight:bold;">修改班级信息</span></legend>
<form action="admin_core/control.php?action=updateBJ" method="post" id="bjForm"> 
<table width="100%">
<tr>
<td width="12%" style="text-align:right; font-size:14px; color:#09C;">所属学院名：</td>
<td align="left" width="88%">
<input name="xyName" id="xyName" type="text" value="<?php echo $bj->getZhy()->getXy()->getXy_name();?>" onfocus="lightBorder(this)"  readonly="readonly"/>
</td>
</tr>
<tr>
<td width="12%" style="text-align:right; font-size:14px; color:#09C;">所属专业名：</td>
<td align="left" width="88%">
<input name="zhyName" id="zhyName" type="text" value="<?php echo $bj->getZhy()->getZhy_name();?>" onfocus="lightBorder(this)"  readonly="readonly"/>
<input name="zhyId" id="zhyId" type="hidden" value="<?php echo  $bj->getZhy()->getZhy_id();?>" />
</td>
</tr>
<tr>
<td width="12%" style="text-align:right; font-size:14px; color:#09C;">输入班级名：</td>
<td align="left" width="88%">
<input name="bjName" id="bjName" type="text" value="<?php echo $bj->getBj_name();?>"  onfocus="lightBorder(this)" onblur="checkBJ(this)"/>&nbsp; <font color="#FFCC00" size="2">(格式如：2008级01班)</font>
<input name="bjId" type="hidden" value="<?php echo $bj->getBj_id();?>" />
<input  name="oldName" id="oldName" type="hidden" value="<?php echo $bj->getBj_name();?>" />
</td>
</tr>

<tr>
<td width="12%" style="text-align:right; font-size:14px; color:#09C;">

</td>
<td align="left">
<input type="button" value=" 添 加 "   id="submitid"  onclick="submitForm()"  onmousemove="changeButton(this,'url(images/61.gif)','#fff')" style="background-image:url(images/40.gif); width:65px; height:23px; border:0px;" onmouseout="changeButton(this,'url(images/40.gif)','#09C')" />
<input type="reset" value=" 重 置 "  onmousemove="changeButton(this,'url(images/61.gif)','#fff')" style="background-image:url(images/40.gif); width:65px; height:23px; border:0px;" onmouseout="changeButton(this,'url(images/40.gif)','#09C')" />
</td>
</tr>
</table>
</form>
</fieldset>
</center>
</body>
</html>
